package com.ruoyi.business.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单记录对象 bus_order_info
 *
 * @author lzq
 * @date 2022-10-22
 */
@ApiModel(value = "订单记录对象")
public class BusOrderInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 商品id */
    @ApiModelProperty(value = "商品id",required = true)
    @NotNull(message = "商品id为必填项")
    @Excel(name = "商品id")
    private Long shopId;

    /** 商品条形码 */
    @ApiModelProperty(value = "商品条形码",required = true)
    @NotBlank(message = "商品条形码为必填项")
    @Excel(name = "商品条形码")
    private String shopBarCode;

    /** 商品名称 */
    @ApiModelProperty(value = "商品名称",required = true)
    @NotBlank(message = "商品名称为必填项")
    @Excel(name = "商品名称")
    private String shopName;

    /** 商品单价 */
    @ApiModelProperty(value = "商品单价",required = true)
    @NotNull(message = "商品单价为必填项")
    @Excel(name = "商品单价")
    private BigDecimal price;

    /** 商品数量 */
    @ApiModelProperty(value = "商品数量",required = true)
    @NotNull(message = "商品数量为必填项")
    @Excel(name = "商品数量")
    private Integer number;

    /** 总价 */
    @ApiModelProperty(value = "总价",required = true)
    @Excel(name = "总价")
    private BigDecimal totalPrice;


    /** 规格 */
    @ApiModelProperty(value = "规格")
    @Excel(name = "规格")
    private String specs;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public void setShopBarCode(String shopBarCode)
    {
        this.shopBarCode = shopBarCode;
    }

    public String getShopBarCode()
    {
        return shopBarCode;
    }
    public void setShopName(String shopName)
    {
        this.shopName = shopName;
    }

    public String getShopName()
    {
        return shopName;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("shopId", getShopId())
            .append("shopBarCode", getShopBarCode())
            .append("shopName", getShopName())
            .append("price", getPrice())
            .append("specs", getSpecs())
            .append("number", getNumber())
            .append("totalPrice", getTotalPrice())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
